package com.sunseagear.wind.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sunseagear.common.base.mvc.entity.TreeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @version V1.0
 * @Title:
 * @Description:
 * @date 2017-02-07 21:06:09
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_organization")
@SuppressWarnings("serial")
public class Organization extends TreeEntity<Long> {

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 名称
     */
    @TableField(value = "name")
    protected String name;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private String tenantId;
    /**
     * 备注
     */
    @TableField(value = "remarks")
    private String remarks;

}
